<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="decorator" uri="http://claudiushauptmann.com/jsp-decorator/"%>
<%@ page import="vn.fpt.fsoft.entity.User" %>
<decorator:decorate filename="MasterPage.jsp">
	<decorator:content placeholder="title">View Government Office Region</decorator:content>
	<decorator:content placeholder="head"></decorator:content>
	<link rel="stylesheet" href="css/style-homepage.css" type="text/css">
	<link href="css/style-1.css" rel="stylesheet" type="text/css" />
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
		<script type="text/javascript" src="http://getbootstrap.com/dist/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="http://bootboxjs.com/bootbox.js"></script>
		<script type="text/javascript">
			function logout() {
				$.ajax({
					url : "UserController?action=logout",
					type : "POST",
					success : function(data) {
					},
					error : function(data) {
					}
				});
				return true;
			}

			$(document).ready(function() {
				$("#tabs").tabs();
				$(window).load(function() {
					$.ajax({
						url : "ListGovOfficeRegionController?action=view&govID="
							+<%=request.getParameter("govofficeregionid")%>
							+ "&isactive="+<%=request.getParameter("isactive")%>,
						type : "GET",
						success : function(data) {
							$("#table").append(data);
						},
						error : function(data) {

						}
					});
				});
			});

			function Click_Cancel() {
				window.location.replace("ListGovOfficeRegion.jsp");
			}
		</script>

	<decorator:content placeholder="body">
	<%
		User user = (User) request.getSession().getAttribute("user");
		if(user == null) {
		    response.sendRedirect("login.jsp");
		}
	%>
		<p style="color: #0C3; font-size: 24px; font-weight: bold;">Government Office Region Detail</p>
		<div id="tabs" style="width: 795px;">
			<ul>
				<li><a href="#detail1">Detail</a></li>
				<li style="float: right">
				<input type="button" value="Back" onclick="Click_Cancel();" />
				</li>
			</ul>
			<div id="detail1" style="background-color: #EFEFEF;">
				<table style="width:703px" id="table"></table>
			</div>
		</div>

	</decorator:content>
</decorator:decorate>